<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 200px;
            height: 200px;
            border: 10px solid red;
            padding: 10px;
            background-image: url(xxx);
            background-repeat: no-repeat;
            /* background-clip: content-box; */
            /* background-origin: content-box;
            background-position: 50px 50px; */
            background-attachment: fixed;
            background-size: 100px 100px;
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>